home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / lisp / clue.lha / clue / doc / clue.tex / node176_mn.html < prev    next >
Text File  |  1989-07-12  |  3KB  |  108 lines

  1.  
  2. <H3><A ID="SECTION005011100000000000000"><tex2html_anchor_invisible_mark></A> <A ID="ch:composites"><tex2html_anchor_mark></A><BR>
  3. Composites
  4. </H3><#5192#>
  5.            
  6.       
  7.  
  8. A contact which is the parent of another contact is known as a
  9. <#2315#><B>composite</B><#2315#><A ID="2316"><tex2html_anchor_invisible_mark></A>. A composite 
  10. may be the parent of another composite, leading to a
  11. tree-structured contact hierarchy. Contact A is said to be an
  12. <#2317#><B>ancestor</B><#2317#><A ID="2318"><tex2html_anchor_invisible_mark></A> of contact B (its 
  13. <#2319#><B>descendant</B><#2319#><A ID="2320"><tex2html_anchor_invisible_mark></A>) when
  14. A is B's parent or an ancestor of B's parent. 
  15.  
  16. <P>
  17. A composite represents a set of contacts which can be manipulated
  18. (positioned, presented,
  19. etc.) as a unit.  A composite is useful whenever several contacts act in concert to provide a
  20. single component of the application's user interface.  Typical examples include
  21. ``control panels'' and ``dialog boxes'' --- groups of contacts that are presented
  22. together and are used to make related adjustments to application data.  In some
  23. cases, operations on one member of such a structure may change the appearance of
  24. another.  The composite is the mechanism which allows the operations of its
  25. members to be coordinated.
  26.  
  27. <P>
  28. The fundamental aspects of the contact parent-child relationship are the same as
  29. those of the window hierarchy defined by the X Window System. In addition, a
  30. composite furnishes geometry management and focus management services for
  31. its children.
  32.  
  33. <P>
  34. A composite is an instance of the <#2321#><TT>composite</TT><#2321#> class, a
  35. subclass of the basic <#2322#><TT>contact</TT><#2322#> class.
  36.  
  37. <P>
  38. <#4692#>
  39. <#4399#><FONT SIZE="+1"><#2323#><B>composite Class</B><#2323#></FONT><#4399#> 
  40. <A ID="2324"><tex2html_anchor_invisible_mark></A>
  41. <DIV class="RIGHT">
  42. <tex2html_image_mark>#tex2html_wrap_inline10196#
  43. </DIV><#4692#>
  44.  
  45. <P>
  46. <DIV class="RIGHT">
  47. <tex2html_image_mark>#tex2html_wrap_inline10198#
  48. </DIV>
  49.  
  50. <P>
  51. <DIV class="RIGHT">
  52. <tex2html_image_mark>#tex2html_wrap_inline10199#
  53. </DIV>
  54.  
  55. <P>
  56. <DIV class="RIGHT">
  57. <tex2html_image_mark>#tex2html_wrap_inline10200#
  58. </DIV>
  59.  
  60. <P>
  61. <#4693#>
  62. <#4404#><FONT SIZE="+1"><#2357#><B>add-child Method, composite</B><#2357#></FONT><#4404#>
  63. <A ID="2358"><tex2html_anchor_invisible_mark></A>
  64. <A ID="2359"><tex2html_anchor_invisible_mark></A>
  65. <DIV class="RIGHT">
  66. <tex2html_image_mark>#tex2html_wrap_inline10201#
  67. </DIV><#4693#>
  68.  
  69. <P>
  70. <DIV class="RIGHT">
  71. <tex2html_image_mark>#tex2html_wrap_inline10204#
  72. </DIV>
  73.  
  74. <P>
  75. <DIV class="RIGHT">
  76. <tex2html_image_mark>#tex2html_wrap_inline10205#
  77. </DIV>
  78.  
  79. <P>
  80. <#4408#><FONT SIZE="+1"><#2383#><B>delete-child Method, composite</B><#2383#></FONT><#4408#>
  81. <A ID="2384"><tex2html_anchor_invisible_mark></A>
  82. <A ID="2385"><tex2html_anchor_invisible_mark></A>
  83. <DIV class="RIGHT">
  84. <tex2html_image_mark>#tex2html_wrap_inline10206#
  85. </DIV>
  86.  
  87. <P>
  88. <DIV class="RIGHT">
  89. <tex2html_image_mark>#tex2html_wrap_inline10207#
  90. </DIV>
  91.  
  92. <P>
  93. <#4694#>
  94. <#4411#><FONT SIZE="+1"><#2402#><B>(setf contact-parent) Method, contact</B><#2402#></FONT><#4411#>
  95. <A ID="2403"><tex2html_anchor_invisible_mark></A>
  96. <A ID="2404"><tex2html_anchor_invisible_mark></A>
  97. <DIV class="RIGHT">
  98. <tex2html_image_mark>#tex2html_wrap_inline10208#
  99. </DIV><#4694#>
  100.  
  101. <P>
  102. <DIV class="RIGHT">
  103. <tex2html_image_mark>#tex2html_wrap_inline10211#
  104. </DIV>
  105.  
  106. <P>
  107.  
  108.  =0 <#5202#>=0 <#5206#>